package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.service.UserService;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 张义
 * @describe:
 * @date 2021/06/20
 */

@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource(name = "userDao")
    private UserDao userDao;

    public void transfer(String outMan , String inMan , int money) {
        userDao.out(outMan , money);
        int i = 1 / 0;
        userDao.in(inMan , money);
    }

}
